package com.ccys.db.entity;

import com.ccys.db.rely.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* Created by Mybatis Generator on 2023/12/12
*/
@Data
@Table(name = "tbl_staff_purchase")
@NoArgsConstructor
@AllArgsConstructor
public class TblStaffPurchase extends BaseEntity {
    @Column(name = "pharmacy_id")
    private String pharmacyId;

    /**
     * 编号
     */
    @ApiModelProperty("编号")
    private String code;

    /**
     * 病人 id
     */
    @Column(name = "mem_id")
    @ApiModelProperty("病人 id")
    private String memId;

    @Column(name = "purchase_date")
    private Long purchaseDate;

    @Column(name = "purchase_remark")
    private String purchaseRemark;

    @Column(name = "admin_charge")
    private BigDecimal adminCharge;

    @Column(name = "payment_method")
    private String paymentMethod;

    @Column(name = "payment_ref")
    private String paymentRef;

    @Column(name = "discount_type")
    private String discountType;

    private BigDecimal discount;

    @Column(name = "tax_percent")
    private BigDecimal taxPercent;

    @Column(name = "total_amount")
    private BigDecimal totalAmount;

    @Column(name = "total_amount_include_tax")
    private BigDecimal totalAmountIncludeTax;
}